package org.example.module.controller.auth;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;

/**
 * 入参
 *
 * @author yinjunwu
 */

@ApiModel(value = "登录请求参数", description = "登录请求参数")
@Getter
@Setter
@ToString
public class LoginReq {

    @ApiModelProperty(value = "用户名", name = "userName", example = "jack", required = true)
    @NotNull(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "密码", name = "password", example = "123456", required = true)
    @NotNull(message = "密码不能为空")
    private String password;
}
